package com.ruoyi.event.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 人员转期业务对象 event_zq
 *
 * @author strongme
 * @date 2023-02-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EventZqBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {EditGroup.class})
    private Long zqId;

    /**
     * 人员id
     */
    @NotNull(message = "人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 工作人员id
     */
    private Long memberId;

    /**
     * 目标人员期数
     */
    @NotBlank(message = "目标人员期数不能为空", groups = {AddGroup.class, EditGroup.class})
    private String targetTermType;

    /**
     * 原人员期数
     */
    @NotBlank(message = "原人员期数不能为空", groups = {AddGroup.class, EditGroup.class})
    private String previousTermType;

    /**
     * 审核状态
     */
    @NotBlank(message = "审核状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private String status;

    /**
     * 备注
     */
    private String remark;


}
